<div class="layui-card">
    <div class="layui-card-header">
        {{ __('upload.base') }}
    </div>
    <div class="layui-card-body">
        <div class="layui-row">
            <div class="layui-col-md6">
                <form class="layui-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label">{{ __('upload.mime') }}</label>
                        <div class="layui-input-block">
                            <input type="checkbox" name="mime" value="image" title="{{ __('upload.mime_image') }}"
                                   checked disabled>
                            <input type="checkbox" name="mime" value="video" title="{{ __('upload.mime_video') }}"
                                   {% if 'video' in setting.upload.mime %}checked{% endif %}>
                            <input type="checkbox" name="mime" value="audio" title="{{ __('upload.mime_audio') }}"
                                   {% if 'audio' in setting.upload.mime %}checked{% endif %}>
                            <input type="checkbox" name="mime" value="file" title="{{ __('upload.mime_all') }}"
                                   {% if 'file' in setting.upload.mime %}checked{% endif %}>
                        </div>
                        <div class="layui-form-mid layui-word-aux">{{ __('upload.mime_tip') }}</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">{{ __('upload.ext') }}</label>
                        <div class="layui-input-block">
                            <input type="text" name="extension"
                                   value="{{ setting.upload.extension|default('jpg,jpeg,png') }}" class="layui-input">
                            <div class="layui-word-aux">{{ __('upload.ext_tip') }}</div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">{{ __('upload.size') }}</label>
                        <div class="layui-input-block">
                            <input type="number" name="filesize"
                                   value="{{ setting.upload.filesize |default('1048576') }}"
                                   class="layui-input" lay-affix="number">
                            <div class="layui-word-aux">{{ __('upload.size_tip') }}</div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">{{ __('upload.driver') }}</label>
                        <div class="layui-input-block">
                            <input type="radio" name="driver" value="local" title="{{ __('upload.driver_local') }}"
                                   {% if 'local' in setting.upload.driver %}checked{% endif %}>
                            <input type="radio" name="driver" value="ali" title="{{ __('upload.driver_ali') }}"
                                   {% if 'ali' in setting.upload.driver %}checked{% endif %}>
                            <input type="radio" name="driver" value="tencent"
                                   title="{{ __('upload.driver_tencent') }}"
                                   {% if 'tencent' in setting.upload.driver %}checked{% endif %}>
                            <input type="radio" name="driver" value="qiniu" title="{{ __('upload.driver_qiniu') }}"
                                   {% if 'qiniu' in setting.upload.driver %}checked{% endif %}>
                            <div class="layui-word-aux">
                                {{ __('upload.driver_tip') }}
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"></label>
                        <div class="layui-input-block">
                            <button class="layui-btn layui-btn-normal layui-btn-sm" lay-submit lay-filter="upload">
                                {{ __('btn.save') }}
                            </button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="layui-col-md6">
                {{ __('upload.image_ext') }}
                <hr/>
                {{ __('upload.video_ext') }}
                <hr/>
                {{ __('upload.audio_ext') }}
                <hr/>
                {{ __('upload.other_ext') }}
            </div>
        </div>
    </div>
</div>
